package com.lanou.service;

import com.lanou.utils.AjaxResult;
import org.apache.ibatis.annotations.Param;

/**
 * Created by dllo on 18/3/19.
 */
public interface ShoppingService {
    /**
     * 由购物车生成订单
     * @param cartID
     * @param payStatus
     * @return
     */
    AjaxResult shoppingOrders(@Param("cartID") Integer cartID,
                              @Param("userID") Integer userID,
                              @Param("payStatus") Integer payStatus);

    /**
     * 由用户ID和订单状态实现动态SQL查询
     * @param userID
     * @param shoppingStatusID
     * @return
     */
    AjaxResult shoppingOrdersDetails(@Param("userID") Integer userID,
                                     @Param("shoppingStatus_id") Integer shoppingStatusID);

}
